@import "_variables.scss";
// 变量样式

//border-radius
@each $sizekey, $size in $spacing-sizes{
  .borderrs-#{$sizekey} {
    border-radius: $size * $spacing-radius-border;
  }
}

//
@each $key, $value in $wheight-sizes {
  .h-#{$key} {
    height: $value !important
  }
}
@each $key, $value in $wheight-sizes {
  .w-#{$key} {
    width: $value
  }
}

//颜色
@each $colorkey, $color in $colors {
  .text-#{$colorkey} {
    color: $color;
  }

  .bg-#{$colorkey} {
    background-color: $color !important;
    // box-shadow: 0px 0px 4px 1px #afafaf;
  }
  .border-#{$colorkey} {
    border: 2px solid $color;
  }
}

//对齐
@each $var in (left, center, right) {
  .text-#{$var} {
    text-align: $var !important;
  }
}

//flex
@each $key, $value in $flex-jc {
  .justify-content-#{$key} {
    justify-content: $value;
  }
}

@each $key, $value in $flex-ai {
  .align-items-#{$key} {
    align-items: $value;
  }
}

//字体
@each $fontkey, $fontvalue in $font-sizes {
  .fs-#{$fontkey} {
    font-size: $fontvalue * $base-font-size;
  }
}

//.mt-1 => margin top
//spacing

@each $typekey, $type in $spacing-types {
  //.m-1
  @each $sizekey, $size in $spacing-sizes {
    .#{$typekey}-#{$sizekey} {
      #{$type}: $size * $spacing-base-size;
    }
  }

  //.mx-1
  @each $sizekey, $size in $spacing-sizes {
    .#{$typekey}x-#{$sizekey} {
      #{$type}-left: $size * $spacing-base-size;
      #{$type}-right: $size * $spacing-base-size;
    }

    .#{$typekey}y-#{$sizekey} {
      #{$type}-top: $size * $spacing-base-size;
      #{$type}-bottom: $size * $spacing-base-size;
    }
  }

  //.mt-1
  @each $directionkey, $direction in $spacing-directions {
    @each $sizekey, $size in $spacing-sizes {
      .#{$typekey}#{$directionkey}-#{$sizekey} {
        #{$type}-#{$direction}: $size * $spacing-base-size !important;
      }
    }
  }

  .#{$typekey} {
    #{$type}: 0;
  }
}

.text-custom-2{
  font-size: 1.2rem;
  text-align:left;
  margin:0 !important;
}
.small-bg-custom{
  // background-color: rgb(66, 96, 105, 39%);

  background: linear-gradient(to right, rgba(23, 54, 54,1), rgba(23, 54, 54, 0.2));
}
.bg-custom {
  background: linear-gradient(to right, #17363699, transparent 60%, transparent);
  position: relative;
  // border-bottom: none;
  // border-image: linear-gradient(to bottom,rgb(28, 37, 37),rgb(85, 190, 190)) 1;
  box-shadow: inset 0 -.2rem .5rem rgba(112, 184, 184, 0.59);
}
.bg-custom::after{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  content: '';
  height: .1rem;
  background: linear-gradient(to right, rgba(23, 54, 54,1),rgb(85, 190, 190),rgba(23, 54, 54,1) );
}
.bg-custom::before{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  content: '';
  height: .1rem;
  background:  rgb(85, 190, 190);
}
.seamless-scroll{
  overflow: hidden;
}
.h-100{
  min-height: 100%;
}
.echarts-container div{
  height: 100% !important;
}
.echarts-container div canvas{
  height: 100% !important;
}
*{
  box-sizing: border-box; //宽高会加上padding和border
}
body,html{
  font-family: "Roboto", Sans-serif;
}